//
//  CreateViewController.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/4/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>

@interface CreateViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate, ASIHTTPRequestDelegate> {
    UITableView *eventTableView;
    UIView *headerView;
    UILabel *placeNameLabel;
    UIScrollView *eventScrollView;
	UITextField *textFieldBeingEdited;
    UILabel *placeAddressLabel;
    BOOL isPrivate;
    EventEditMode editMode;
    NSInteger placeType;
    
    FBGraphObject *place;
    NSString *eventTitle;
    NSString *eventEndString;
    NSInteger eventEnd;
    NSString *phoneNumber;
    NSString *code;
}

@property (nonatomic, retain) IBOutlet UITableView *eventTableView;
@property (nonatomic, retain) IBOutlet UIView *headerView;
@property (nonatomic, retain) IBOutlet UILabel *placeNameLabel;
@property (nonatomic, retain) IBOutlet UILabel *placeAddressLabel;
@property (nonatomic, retain) IBOutlet UIScrollView *eventScrollView;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;
@property (nonatomic, assign) BOOL isPrivate;
@property (nonatomic, assign) EventEditMode editMode;
@property (nonatomic, assign) NSInteger placeType;

@property (nonatomic, retain) FBGraphObject *place;
@property (nonatomic, retain) NSString *eventTitle;
@property (nonatomic, retain) NSString *eventEndString;
@property (nonatomic, assign) NSInteger eventEnd;
@property (nonatomic, retain) NSString *phoneNumber;
@property (nonatomic, retain) NSString *code;

- (IBAction)cancelButtonPressed:(id)sender;
- (IBAction)createButtonPressed:(id)sender;
- (IBAction)doneButtonPressed:(id)sender;
- (IBAction)switchValueChanged:(id)sender;

@end
